﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace gui {

    /// <summary>
    /// GUI Notifiable ChartDataItem Class
    /// </summary>
    public class ChartDataItem : INotifyPropertyChanged {

        public string Name { get; set; }
        public int Lines {
            get { return _lines; }
            set {
                _lines = value;
                var handler = PropertyChanged;
                if (null != handler) {
                    handler.Invoke(this, new PropertyChangedEventArgs("Lines"));
                }
            }
        }
        private int _lines;

        public event PropertyChangedEventHandler PropertyChanged;
    }
}

